<%@ Control Language="C#" AutoEventWireup="true" CodeFile="List.ascx.cs" Inherits="Modules_WebpartDefinition_List" %>

<asp:Button ID="New" runat="server" Text="New" OnClick="New_Click" /><br />

<asp:Repeater ID="Contents" runat="server" OnItemCommand="Contents_ItemCommand">
    <HeaderTemplate>
        <table class="Contents" cellpadding="0" cellspacing="0">        
        <tr class="Header">
            <td>Name</td>
            <td>Path</td>
            <td></td>
            <td>Edit</td>
            <td>Delete</td>
        </tr>
    </HeaderTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
    <AlternatingItemTemplate>
        <tr>
            <td>
                <%#DataBinder.Eval(Container.DataItem, "Name")%>
            </td>
            <td>
                <%#DataBinder.Eval(Container.DataItem, "Path")%>
            </td>
            <td>
                <!--<%#DataBinder.Eval(Container.DataItem, "RenderImage")%> -->
            </td>
            <td style="padding-left: 10px;">
                <asp:Button runat="server" ID="btnEdit" Text="Edit" CommandName="Edit" CssClass="CommandEdit" CommandArgument='<%#Eval("ID")%>'/>
            </td>
            <td style="padding-left: 10px;">
                <asp:Button runat="server" ID="btnDelete" Text="Delete" CommandName="Delete" CssClass="CommandDelete" CommandArgument='<%#Eval("ID")%>' OnClientClick="return confirmDelete();"/>
            </td>
        </tr>
    </AlternatingItemTemplate>   
    <ItemTemplate>
        <tr class="Item">
            <td>
                <%#DataBinder.Eval(Container.DataItem, "Name")%>
            </td>
            <td>
                <%#DataBinder.Eval(Container.DataItem, "Path")%>
            </td>
            <td>
                <!--<%#DataBinder.Eval(Container.DataItem, "RenderImage")%> -->
            </td>
            <td style="padding-left: 10px;">
                <asp:Button runat="server" ID="btnEdit" Text="Edit" CommandName="Edit" CssClass="CommandEdit" CommandArgument='<%#Eval("ID")%>'/>
            </td>
            <td style="padding-left: 10px;">
                <asp:Button runat="server" ID="btnDelete" Text="Delete" CommandName="Delete" CssClass="CommandDelete" CommandArgument='<%#Eval("ID")%>' OnClientClick="return confirmDelete();"/>
            </td>
        </tr>
    </ItemTemplate>        
</asp:Repeater>
<br class="clear" />
<asp:PlaceHolder runat="server" ID="phPagingBottom"></asp:PlaceHolder>
<div class="mybr"></div>
<br class="clear"/>